<template>
  <div class="cart">
    <div class="head">
      <img src="img/carth.png"/>
      <img src="img/zjt.png" class="jt" @click="fun()">
      <p>购物车</p>
    </div>
  </div>
</template>

<script>
export default {
    methods:{
        fun(){
            this.$router.push("/home");
        }
    }
};
</script>

<style scoped>
.cart .head img:nth-child(1){
  width: 100%;
  height: 0.88rem;
  vertical-align: top;
  position: absolute;
}
.jt{
    position: absolute;
    display: inline-block;
    width: 0.32rem;
    height: 0.32rem;
    margin-top: 0.28rem;
    margin-left: 0.1rem;
    z-index: 333;
}
.head p{
    width: 100%;
    position: absolute;
    z-index: 222;
    font-size: 0.15rem;
    color: white;
    line-height: 0.88rem;
    text-align: center;
}
</style>